home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / DJLSR106.ARJ / CRT0.S < prev    next >
Text File  |  1992-03-28  |  380b  |  35 lines

  1.  
  2. /*
  3. **    Called as start(argc, argv, envp)
  4. */
  5.  
  6.     .text
  7.     .globl    start
  8. start:
  9.     movl    %esp,%ebx
  10.     movl    8(%ebx),%eax
  11.     pushl    %eax
  12.     movl    %eax,_environ
  13.     pushl    4(%ebx)
  14.     pushl    (%ebx)
  15.     call    ___main
  16.     call    _main
  17.     addl    $12,%esp
  18.     pushl    %eax
  19.     call    _exit
  20.  
  21. exit_again:
  22.     movl    $0x4c00,%eax
  23.     int    $0x21
  24.     jmp    exit_again
  25.  
  26.     ret
  27.  
  28.     .data
  29.  
  30.     .globl    _environ
  31. _environ:
  32.     .long    0
  33.  
  34.  
  35.